package cn.dylan.feignClient;

import cn.dylan.domain.Store;
import cn.dylan.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server", fallbackFactory = StoreFeignClientFallback.class)
public interface StoreFeignClient {
    @PostMapping("/store/save")
    JsonResult handlerAdd(@RequestBody Store store);
}
